var versione='2.1.2';
var statoVer=false;
var pro=true;
var url2="http://treno.it.hostinghood.com";
var url1='http://www.rosariomadaudo.it/treno';
statoPro=window.localStorage.getItem ('statoPro');
if (statoPro=='true') pro=true; else if (statoPro=='false') pro=false;
logger('variabili.js '+new Date());
datiStaz='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:tsf="http://schemas.datacontract.org/2004/07/TSF.TI.NSV.Common.WCF.ServiceContracts"><soapenv:Header><tem:pHeader><tsf:UnitOfWork>0</tsf:UnitOfWork></tem:pHeader></soapenv:Header><soapenv:Body><tem:InputAmbiguityStations><tem:pInputMobileStations><tsf:Name>%name%</tsf:Name></tem:pInputMobileStations></tem:InputAmbiguityStations></soapenv:Body></soapenv:Envelope>';
datiXml='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:tsf="http://schemas.datacontract.org/2004/07/TSF.TI.NSV.Common.WCF.ServiceContracts"><soapenv:Header><tem:pHeader><tsf:UnitOfWork>0</tsf:UnitOfWork></tem:pHeader></soapenv:Header><soapenv:Body><tem:InputSolutionsMobile><tem:pInput><tsf:BoardingRailwayCode>rCodeStart</tsf:BoardingRailwayCode><tsf:BoardingStationCode>sCodeStart</tsf:BoardingStationCode><tsf:ArrivalRailwayCode>rCodeStop</tsf:ArrivalRailwayCode><tsf:ArrivalStationCode>sCodeStop</tsf:ArrivalStationCode><tsf:DepartureDateTime>%dateTime%</tsf:DepartureDateTime></tem:pInput></tem:InputSolutionsMobile></soapenv:Body></soapenv:Envelope>';
var stazioniInfo='';
var recensione=window.localStorage.getItem ('recensione');
if (recensione=='true' || recensione==null || recensione==undefined){recensione='true'; };
var guida=window.localStorage.getItem ('guida');
if (guida=='true' || guida==null || guida==undefined){guida='true'; };
var ver=window.localStorage.getItem ('ver');
if (!ver || ver!=versione){
logger('entro');
window.localStorage.setItem ('ver',versione);
statoVer=true}
logger(statoVer);
$('#waitimg').css({'top':((window.innerWidth - 300)/2) + 'px'});
tables = [{name : "STATION",fields : ["codFer","codStaz","staz","lat","lon"]}];
stazioniFreccie='-';
stateInfo=true;
var geo=false;
var localizz='';
var messStatoDett=true;
var messStatoEl=true;
var devicePlatform='';
var storiaMax="5";
var nreq="10";
var tema="1";
var value="1";
var pos="";
var width=0;
var height=0;
var mess="";
var valueTema='b';
var storicoPartenze=new Array();
var storicoArrivi=new Array();
var storicoDett=new Array();
var storicoDesc=new Array();
var indice=0;
var indiceLoc=0;
var exitVar=false;
var urlBase=url1;
stateConn=true;   
tipoUrl=true;  
var timeoutLoad=null;
var carH='';
var hashCar = {};
if (screen.width==320){
  var hashCar = {'piccolo':10,'medio':11,'large':12,'extra':13};
  $("#table").css({'padding-left':'5%'});
} else 
if (screen.width<600){
  var hashCar = {'piccolo':14,'medio':16,'large':17,'extra':18};
} else {
  var hashCar = {'piccolo':16,'medio':17,'large':18,'extra':19};
}
var carDim='large';
function carattereImp(carat){
car=carat+'px';
carH=(carat+8)+'px';
/* 16px > 1em */
$("*").css({'font-size': car });
$("div#ui_bar.ui-bar.ui-bar-a").css({'font-size': car });
$("#radio-mini-1").css({'font-size': car });
$("#radio-mini-2").css({'font-size': car });
$("#radio-mini-3").css({'font-size': car });
$("span.ui-btn-inner").css({'font-size': car });
$(".ui-grid-a .ui-block-a").css({'font-size': car });
$("div.ui-block-b").css({'font-size': car });
$("div.ui-block-a").css({'font-size': car });
$("div.ui-bar-a").css({'font-size': car });
$(".ui-grid-a#ui_bar-a.ui-block-a").css({'font-size': car });
$("#tableWait").css({'font-size': car });
$("div.ui-grid-a").css({'font-size': car });
$(".ui-menu-item").css({'font-size': car });
$(".ui-fullsize .ui-btn-inner").css({'font-size': car });
$("span.ui-btn-inner").css({'font-size': car });
$("h1").css({'font-size': carH });
$(".ui-header-fixed>.ui-btn-icon-notext").css({'top': '4px' });
$(".ui-header .ui-title, .ui-footer .ui-title").css({'margin': '0px' });
$(".ui-collapsible-heading.ui-btn-icon-left.ui-btn-inner").css({'padding-top':'5px','padding-bottom':'5px'}); 
$(".ui-collapsible-heading").css({'font-size': car });
}
logger('variabili.js END '+new Date());